<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>广告添加</title>

    <!--data table-->
    {css href="/static/admin/js/data-tables/DT_bootstrap.css"}

    {css href="/static/admin/css/style.css"}
    {css href="/static/admin/css/style-responsive.css"}
    {css href="/static/admin/css/toastr.min.css"}



    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    {js href="/static/admin/js/html5shiv.js"}
    {js href="/static/admin/js/respond.min.js"}
    <![endif]-->
</head>

<body class="sticky-header">

<section>
    <!-- left side start-->
    <div class="left-side sticky-left-side">

        <!--logo and iconic logo start-->
        <div class="logo">
            <a href="index.html"><img src="/static/admin/images/logo.png" alt=""></a>
        </div>

        <div class="logo-icon text-center">
            <a href="index.html"><img src="/static/admin/images/logo_icon.png" alt=""></a>
        </div>
        <!--logo and iconic logo end-->


        <div class="left-side-inner">

            <!-- visible to small devices only -->

            <!--sidebar nav start-->
            <ul class="nav nav-pills nav-stacked custom-nav">
                <li><a href="{:url('admin/index/show')}"><i class="fa fa-home"></i> <span>Dashboard</span></a></li>

                <li class="menu-list nav-active"><a><i class="fa fa-th-list"></i> <span>用户管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="{:url('admin/user/index')}"> 用户列表</a></li>
                        <li class="active"><a href="{:url('admin/user/create')}"> 用户添加</a></li>
                    </ul>
                </li>

                <li class="menu-list"><a><i class="fa fa-tasks"></i> <span>角色管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="{:url('admin/role/index')}">角色列表</a></li>
                        <li><a href="{:url('admin/role/create')}">角色添加</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a><i class="fa fa-file-text"></i> <span>节点管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="{:url('admin/access/index')}">节点列表</a></li>
                        <li><a href="{:url('admin/access/create')}">节点添加</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a><i class="fa fa-th-list"></i> <span>作家申请</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="{:url('admin/Writer/writer_apply')}"> 申请列表</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a><i class="fa fa-th-list"></i> <span>作家管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="{:url('admin/Writer/writer_user')}"> 作家列表</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a><i class="fa fa-th-list"></i> <span>广告管理</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="{:url('admin/Guanggao/index')}"> 广告列表</a></li>
                        <li><a href="{:url('admin/Guanggao/add')}"> 广告添加</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a href="#"><i class="fa fa-th-list"></i> <span>链接管理</span></a>
                    <ul class="sub-menu-list">
                        
                        <li><a href="{:url('admin/link/link')}"> 链接列表</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a href=""><i class="fa fa-file-text"></i> <span>Extra Pages</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="profile.html"> Profile</a></li>
                        <li><a href="invoice.html"> Invoice</a></li>
                        <li><a href="pricing_table.html"> Pricing Table</a></li>
                        <li><a href="timeline.html"> Timeline</a></li>
                        <li><a href="blog_list.html"> Blog List</a></li>
                        <li><a href="blog_details.html"> Blog Details</a></li>
                        <li><a href="directory.html"> Directory </a></li>
                        <li><a href="chat.html"> Chat </a></li>
                        <li><a href="404.html"> 404 Error</a></li>
                        <li><a href="500.html"> 500 Error</a></li>
                        <li><a href="registration.html"> Registration Page</a></li>
                        <li><a href="lock_screen.html"> Lockscreen </a></li>
                    </ul>
                </li>
                <li><a href="login.html"><i class="fa fa-sign-in"></i> <span>Login Page</span></a></li>

            </ul>
            <!--sidebar nav end-->

        </div>
    </div>
    <!-- left side end-->

    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div class="header-section">

            <!--toggle button start-->
            <a class="toggle-btn"><i class="fa fa-bars"></i></a>
            <!--toggle button end-->


            <!--notification menu start -->
            <div class="menu-right">
                <ul class="notification-menu">
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            <img src="/static/admin/images/photos/user-avatar.png" alt="" />

                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                            <li><a href="#"><i class="fa fa-user"></i>  Profile</a></li>
                            <li><a href="#"><i class="fa fa-cog"></i>  Settings</a></li>
                            <li><a href="#"><i class="fa fa-sign-out"></i> Log Out</a></li>
                        </ul>
                    </li>

                </ul>
            </div>
            <!--notification menu end -->

        </div>
        <!-- header section end-->


        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <header class="panel-heading">
                            广告添加
                            <span class="tools pull-right">
                        <a href="javascript:;" class="fa fa-chevron-down"></a>
                        <a href="javascript:;" class="fa fa-times"></a>
                     </span>
                        </header>
                        <div class="panel-body">
                            <form id="default" name="regForm" class="form-horizontal" action="{:url('admin/Guanggao/do_add')}"  enctype="multipart/form-data" method="post" onsubmit="return check()">
                                <legend>广告信息</legend>
                                <div class="form-group">
                                    <label class="col-md-2 col-sm-2 control-label">广告图片</label>
                                    <div class="col-md-6 col-sm-6">
                                        <input type="file" class="form-control" name="image">
                                    </div>
                                </div>
                                <div class="form-group">
                                        <label class="col-md-2 col-sm-2 control-label">广告名称</label>
                                        <div class="col-md-6 col-sm-6">
                                            <input type="text" placeholder="请输入广告名称" class="form-control" name="gg_name">
                                        </div>
                                </div>

                                <div class="form-group">
                                        <label class="col-md-2 col-sm-2 control-label">广告网址</label>
                                        <div class="col-md-6 col-sm-6">
                                            <input type="text" placeholder="请输入广告网址" class="form-control" name="gg_url">
                                        </div>
                                </div>

                                <div class="col-md-2 col-sm-2 control-label">
                                    <button class="btn btn-primary btn-lg">提交</button>
                                </div>

                            </form>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

<!-- Placed js at the end of the document so the pages load faster -->
{js href="/static/admin/js/jquery-1.10.2.min.js"}
{js href="/static/admin/js/jquery-ui-1.9.2.custom.min.js"}
{js href="/static/admin/js/jquery-migrate-1.2.1.min.js"}
{js href="/static/admin/js/bootstrap.min.js"}
{js href="/static/admin/js/modernizr.min.js"}
{js href="/static/admin/js/jquery.nicescroll.js"}


<!--data table-->
{js href="/static/admin/js/data-tables/jquery.dataTables.js"}
{js href="/static/admin/js/data-tables/DT_bootstrap.js"}


<!--common scripts for all pages-->
{js href="/static/admin/js/scripts.js"}

<!--script for editable table-->
{js href="/static/admin/js/editable-table.js"}

<!-- END JAVASCRIPTS -->
<script>
    jQuery(document).ready(function() {
        EditableTable.init();
    });
</script>

<script>

    function checkpwd(){
        var pass = document.regForm.pwd.value;
        var repass = document.regForm.repwd.value;
        var rptab = document.getElementById('rptab');

        if (repass !== pass) {
            rptab.innerHTML = '* 两次密码不一致';
            rptab.style.color = '#f00';
            return false;
        } else {
            rptab.innerHTML = '';
            return true;
        }
    }

    function check(){
        return checkpwd();
    }





</script>



</body>
</html>
